package photosalvage.entity;

import java.util.ArrayList;
import java.util.Collection;

class PagedListImpl<E> extends ArrayList<E> implements PagedList<E>{
	private static final long serialVersionUID = 1L;
	private int totalResults;
	private int startIndex;
	private int itemsPerPage;
	
	public PagedListImpl() {
		super();
	}

	public PagedListImpl(Collection<? extends E> c) {
		super(c);
	}

	public PagedListImpl(int initialCapacity) {
		super(initialCapacity);
	}

	void setTotalResults(int totalResults) {
		this.totalResults = totalResults;
	}

	void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	void setItemsPerPage(int itemsPerPage) {
		this.itemsPerPage = itemsPerPage;
	}

	@Override
	public int getTotalResults() {
		return totalResults;
	}

	@Override
	public int getStartIndex() {
		return startIndex;
	}

	@Override
	public int getItemsPerPage() {
		return itemsPerPage;
	}
}
